package com.coo.navigation 
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	public class AbstractContainer extends Sprite
	{
		
		private const OVERRIDE_ERROR: String = "AbstractContainer  -  container did not override any function";
		
		public function AbstractContainer() 
		{
			addEventListener( Event.ADDED_TO_STAGE, init );
		}
		
		private function init( e: Event ): void
		{
			removeEventListener( Event.ADDED_TO_STAGE, init );
			
			setDefault();
			setChildren();
		}
		
		protected function setDefault(): void { throw new Error( OVERRIDE_ERROR );  }
		protected function setChildren(): void { throw new Error( OVERRIDE_ERROR );  }
		protected function change(): void { throw new Error( OVERRIDE_ERROR );  }
	}

}